#include <iostream>
using namespace std;
class person{
    public:
    int a;
    int b;
    person(){
        cout<<"person()"<<endl;
    }
    person(int x):a(x){
        cout<<"prrson(int x)"<<endl;
    }
    person(int x,int y):a(x),b(y){
        cout<<"person(int x,int y)"<<endl;
    }
    //委托构造函数
    person(string name,int x,int y):person(x,y){
        cout<<"name="<<name<<endl;
        cout<<"person(string name,int x,int y)"<<endl;
    }
};
int main()
{
    person s("张三",3,4);
    return 0;
}